<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <title>Test Case for Issue #700</title>
</head>
<body>

<h1>Issue #700</h1>

<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=700">Issue #700</a>
- <span class="h3">HTML preview for net responses</span>.

<br/>
<i>Jan Odvarko, odvarko@gmail.com</i>
</p>

<ol>
    <li>Open Firebug and enable Net panel.</li>
    <li>Click the <i>GET HTML Response</i> button.</li>
    <li>Verify Net panel's content, the request must be there.</li>
    <li>Expand the request and select <i>HTML</i> tab.
    The tab must display: <span style="color:green">Response for Issue700.html</span></li>
</ol>

<button onclick="postRequest()">GET HTML Response</button>

<script type="text/javascript">
function postRequest(callback)
{
    try
    {
        var request = new XMLHttpRequest();
        request.open("POST", "issue700.php", true);
        request.onreadystatechange = function()
        {
            if (request.readyState == 4 && request.status == 200)
            {
                if (callback) {
                    setTimeout(function() {
                        callback(request);
                    }, 300);
                }
            }
        }
        request.send(null);
    }
    catch (err)
    {
    }
}
</script>
</body>
</html>
